﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.QuestionViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Fyrirspurnir
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <% Html.RenderPartial("AdminLinks"); %>
    </div>
    <div id="content">
        <h2>
            Fyrirspurnir</h2>
        <h3>
            Fyrirspurnir sem eftir á að svara</h3>
        <ul>
            <% foreach (var a in Model.Unanswered)
               { %>
            <li>
                <%: Html.ActionLink(a.Title, "AnswerQuestion", new {a.ID}) %></li>
            <% } %>
        </ul>
        <h3>
            Birtar fyrirspurnir</h3>
        <ul>
            <% foreach (var a in Model.Published)
               { %>
            <li>
                <%: Html.ActionLink(a.Title, "AnswerQuestion", new {a.ID}) %></li>
            <% } %>
        </ul>
        <h3>
            Faldar fyrirspurnir</h3>
        <ul>
            <% foreach (var a in Model.Unpublished)
               { %>
            <li>
                <%: Html.ActionLink(a.Title, "AnswerQuestion", new {a.ID}) %></li>
            <% } %>
        </ul>
    </div>
</asp:Content>